import math

total_days = 365#天数
every_workdays = 5#每周5天工作日
every_restdays = 2#每周两天休息日
weeks = total_days // (every_workdays + every_restdays)#一年的整周数
remain_days = total_days % (every_workdays + every_restdays)#余下的天数 都是工作日

total_workdays = every_workdays * weeks + remain_days#总的工作日
total_restdays = every_restdays * weeks#总休息日
daily_grow = 1.01#工作日日增长0.01
daily_dowm =0.99#休息日减少0.01

final = 1.00 * math.pow(daily_grow,total_workdays) * math.pow(daily_dowm,total_restdays)#最终能力值
print("周数:",weeks,"总休息日:",total_restdays,"总工作日:",total_workdays)

print("最终能力值:",final)
print(f"最终增长率: {(final - 1)}%")



